package com.jsyl.lwbk.business.constant;

/**
 * @author xiaoshu
 * @date 2020-12-27 02:27
 * @desc
 **/
public enum ScaleTypeEnum {
    TOTAL_SCORE(1), MAX_SCORE_COUNT(2);

    private Integer scaleType;

    ScaleTypeEnum(Integer scaleType) {
        this.scaleType = scaleType;
    }

    public Integer getScaleType() {
        return scaleType;
    }

    public void setScaleType(Integer scaleType) {
        this.scaleType = scaleType;
    }

    public static ScaleTypeEnum getEnumType(Integer scaleType) {
        ScaleTypeEnum[] scaleTypeEnums = ScaleTypeEnum.values();
        for (int i = 0; i < scaleTypeEnums.length; i++) {
            if (scaleTypeEnums[i].getScaleType().equals(scaleType)) {
                return scaleTypeEnums[i];
            }
        }
        return null;
    }
}
